﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AqueleAjax._Default" EnableEventValidation="false" ValidateRequest="false" ViewStateEncryptionMode="Never" %>
<%@ Register Namespace="AqueleAjax.UI.Controls" Assembly="AqueleAjax.UI" TagPrefix="myASP" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <myASP:AjaxMainControl ID="mainControl" runat="server" />
        
        <div>
            <myASP:AjaxDropDownList ID="ddlCores" runat="server" />
        </div>
        
        <div>
            <asp:Panel ID="pnlSubCores" runat="server">
                <myASP:AjaxDropDownList ID="ddlSubCores" runat="server" />
            </asp:Panel>
        </div>
    
        <div>
            <asp:Panel ID="pnlLabelCores" runat="server">
                <p><asp:Label ID="lblCor" runat="server" /></p>
                <p><asp:Label ID="lblHora" runat="server" /></p>
            </asp:Panel>
        </div>
        <div>
            <br />
            <asp:GridView ID="grvTeste" runat="server" AutoGenerateColumns="false">
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID" />
                    <asp:BoundField DataField="Nome" HeaderText="ID" />
                    <asp:BoundField DataField="Idade" HeaderText="ID" />
                    <asp:TemplateField HeaderText="Cor">
                        <ItemTemplate>
                            <myASP:AjaxDropDownList ID="ddlGridCores" runat="server" OnSelectedIndexChanged="ddlGridCores_SelectedIndexChanged">
                                <asp:ListItem Text="Selecione" Value="Selecione" />
                                <asp:ListItem Text="Azul" Value="Azul" />
                                <asp:ListItem Text="Verde" Value="Verde" />
                                <asp:ListItem Text="Amarelo" Value="Amarelo" />
                            </myASP:AjaxDropDownList>
                            
                            <asp:Label ID="lblGridCor" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>            
        </div>
    </div>
    
    <div>
        <p>Cor: <asp:Label ID="lblResumoCor" runat="server" /></p>
        <p>Subcor: <asp:Label ID="lblResumoSubcor" runat="server" /></p>
    
        <myASP:AjaxLinkButton ID="AjaxLinkButton1" CausesValidation="false" runat="server" Text="Testar" />
        <asp:Button ID="btnTeste" runat="server" Text="Testar" />
    </div>
    
    <div>
        <myASP:AutoComplete ID="txtAC" runat="server" DataKeyName="Nome">
            <ItemTemplate>
                <myASP:AjaxLinkButton ID="btnSelecionar" CausesValidation="false" runat="server" />
            </ItemTemplate>
            <SeparatorTemplate>
                <br />            
            </SeparatorTemplate>
        </myASP:AutoComplete>
    </div>
    
    </form>
</body>
</html>
